import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
Vue.use(Vuex)

export default new Vuex.Store({
    modules: {
        user
    },
    getters: {
        token: state => state.user.token,
		userInfo: state => state.user.userInfo,
        imgPrefix: state => state.user.imgPrefix,
	}
})
